package com.example.demo.service.shop;

import com.example.demo.entity.Order;
import org.springframework.data.domain.Page;

/**
 * Copyright (C), 2019-2019, XXX有限公司
 * FileName: OrderService
 * Author:   longzhonghua
 * Date:     2019/4/15 10:51
 *
 * @Description: $description$
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
public interface OrderService {

    Order findById(Long order_id);

    boolean processed(String outTradeNo);

    void paySuccess(String outTradeNo,  String transactionId);

    Order findByOrderNo(String orderNo);

    boolean createSeckillOrder(Long userId, Long productId);

    void createOrder(Order order);

    boolean expireOrder(String orderNo);

    void cancelOrder(String orderNo);

    Page<Order> findByAccount(String accountName, Integer page, Integer size);
}
